﻿using CID.Domain.Users;
using CID.Web.Models.Users;
using CID.Web.Support;

namespace CID.Web.Controllers
{
    [CIDAuthorize(UserRole.Manager)]
    public class UserController : BaseCRUDController<IUser, User, UserViewModel>
    {
        protected override User CreateModel(UserViewModel viewModel)
        {
            return new User(viewModel.Name, viewModel.UserName, viewModel.Email);
        }
    }
}
